﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000B3 RID: 179
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ApplyFriendCsReq : IMessage<ApplyFriendCsReq>, IMessage, IEquatable<ApplyFriendCsReq>, IDeepCloneable<ApplyFriendCsReq>, IBufferMessage
	{
		// Token: 0x17000245 RID: 581
		// (get) Token: 0x06000804 RID: 2052 RVA: 0x00017229 File Offset: 0x00015429
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ApplyFriendCsReq> Parser
		{
			get
			{
				return ApplyFriendCsReq._parser;
			}
		}

		// Token: 0x17000246 RID: 582
		// (get) Token: 0x06000805 RID: 2053 RVA: 0x00017230 File Offset: 0x00015430
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ApplyFriendCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000247 RID: 583
		// (get) Token: 0x06000806 RID: 2054 RVA: 0x00017242 File Offset: 0x00015442
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ApplyFriendCsReq.Descriptor;
			}
		}

		// Token: 0x06000807 RID: 2055 RVA: 0x00017249 File Offset: 0x00015449
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ApplyFriendCsReq()
		{
		}

		// Token: 0x06000808 RID: 2056 RVA: 0x00017251 File Offset: 0x00015451
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ApplyFriendCsReq(ApplyFriendCsReq other) : this()
		{
			this.uid_ = other.uid_;
			this.source_ = other.source_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000809 RID: 2057 RVA: 0x00017282 File Offset: 0x00015482
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ApplyFriendCsReq Clone()
		{
			return new ApplyFriendCsReq(this);
		}

		// Token: 0x17000248 RID: 584
		// (get) Token: 0x0600080A RID: 2058 RVA: 0x0001728A File Offset: 0x0001548A
		// (set) Token: 0x0600080B RID: 2059 RVA: 0x00017292 File Offset: 0x00015492
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x17000249 RID: 585
		// (get) Token: 0x0600080C RID: 2060 RVA: 0x0001729B File Offset: 0x0001549B
		// (set) Token: 0x0600080D RID: 2061 RVA: 0x000172A3 File Offset: 0x000154A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendApplySource Source
		{
			get
			{
				return this.source_;
			}
			set
			{
				this.source_ = value;
			}
		}

		// Token: 0x0600080E RID: 2062 RVA: 0x000172AC File Offset: 0x000154AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ApplyFriendCsReq);
		}

		// Token: 0x0600080F RID: 2063 RVA: 0x000172BA File Offset: 0x000154BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ApplyFriendCsReq other)
		{
			return other != null && (other == this || (this.Uid == other.Uid && this.Source == other.Source && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000810 RID: 2064 RVA: 0x000172F8 File Offset: 0x000154F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.Source != FriendApplySource.None)
			{
				num ^= this.Source.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000811 RID: 2065 RVA: 0x00017356 File Offset: 0x00015556
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000812 RID: 2066 RVA: 0x0001735E File Offset: 0x0001555E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000813 RID: 2067 RVA: 0x00017368 File Offset: 0x00015568
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Source != FriendApplySource.None)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.Source);
			}
			if (this.Uid != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Uid);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000814 RID: 2068 RVA: 0x000173C4 File Offset: 0x000155C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.Source != FriendApplySource.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Source);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000815 RID: 2069 RVA: 0x0001741C File Offset: 0x0001561C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ApplyFriendCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.Source != FriendApplySource.None)
			{
				this.Source = other.Source;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000816 RID: 2070 RVA: 0x0001746C File Offset: 0x0001566C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000817 RID: 2071 RVA: 0x00017478 File Offset: 0x00015678
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Uid = input.ReadUInt32();
					}
				}
				else
				{
					this.Source = (FriendApplySource)input.ReadEnum();
				}
			}
		}

		// Token: 0x040002F8 RID: 760
		private static readonly MessageParser<ApplyFriendCsReq> _parser = new MessageParser<ApplyFriendCsReq>(() => new ApplyFriendCsReq());

		// Token: 0x040002F9 RID: 761
		private UnknownFieldSet _unknownFields;

		// Token: 0x040002FA RID: 762
		public const int UidFieldNumber = 6;

		// Token: 0x040002FB RID: 763
		private uint uid_;

		// Token: 0x040002FC RID: 764
		public const int SourceFieldNumber = 5;

		// Token: 0x040002FD RID: 765
		private FriendApplySource source_;
	}
}
